package Dungeoneering;
import java.awt.Graphics;

import org.powerbot.concurrent.Task;
import org.powerbot.concurrent.strategy.Strategy;
import org.powerbot.game.api.ActiveScript;
import org.powerbot.game.api.Manifest;
import org.powerbot.game.bot.event.MessageEvent;
import org.powerbot.game.bot.event.listener.MessageListener;
import org.powerbot.game.bot.event.listener.PaintListener;


/**
 * The script backbone structure, this acts as the router of all data.
 * @author Nicolaas
 *
 */
@Manifest(
		name = "Dungeoneering",
		authors = {"Banti", "Joske"},
		version = 1.0,
		description = "Hi",
		premium = true			
		)
public class Backbone extends ActiveScript implements PaintListener, MessageListener{

	public enum Skill { AGILITY, CONSTRUCTION, COOKING, CRAFTING, FARMING, FIREMAKING, FISHING, FLETCHING,
		HERBLORE, HUNTER, MAGIC, PRAYER, RANGED, RUNECRAFTING, STRENGTH, SUMMONING, THIEVING, WOODCUTTING};
	
	@Override
	public void onRepaint(Graphics arg0) {
		// TODO Auto-generated method stub
	}

	@Override
	protected void setup() {
		System.out.println("banti is a fag");
		
		LoopStrat loop = new LoopStrat();
		loop.setTask(loop);
		provide(loop);
	}
	
	private final class LoopStrat extends Strategy implements Task {
    	@Override
    	public boolean validate() {
    		return true;
    	}

 	  	@Override
  	 	public void run() {
 	  		loop();
 	  	}
    }
	
	// first we're going to just put everything in a loop, once we got decent functionality we'll think about better design
	private void loop() {
		
	}

	@Override
	public void messageReceived(MessageEvent m) {
		// TODO Auto-generated method stub
		String message = m.getMessage();
		
		String[] words = message.split(" ");
		
		if(words[0] == "You" && words[0] == "need" && words[0] == "a"){
			
		}
	}
	
	//hi joske

}
